<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title></title>
    <link rel="stylesheet" href="__CSS__/pintuer.css">
    <link rel="stylesheet" href="__CSS__/admin.css">
    <script src="__JS__/jquery.js"></script>
    <script src="__JS__/pintuer.js"></script>
    <style>
        .table td:nth-child(2){
            text-align: left;padding-left:17%;
        }
    </style>
</head>
<body>
<div class="panel admin-panel">
    <div class="panel-head"><strong class="icon-reorder"> 内容列表</strong></div>
    <div class="padding border-bottom">
        <li> <a class="button border-main icon-plus-square-o" href="sxlbadd.html"> 添加分类</a> </li>
    </div>
    <form action="" method="get">
        <li>
            <{foreach name="lent['prop_value_arr']" item="vo"}>
            <label><input type="checkbox" name="prop_value[]" value="<{$key}>" <{in name="key" value="$prop_value|default=''"}>checked<{/in}> > <{$vo}></label>　
            <{/foreach}>
        </li>
        <input type="text" placeholder="请输入查询的属性名" name="keywords" value="<{$keywords|default=''}>">
        <button>提交</button>
    </form>
    <table class="table table-hover text-center">
        <tr>
            <th width="5%">ID</th>
            <th width="26%">属性名</th>
            <th width="10%">属性值</th>
            <th width="10%">属性值中文</th>
            <th width="10%">排序</th>
            <th width="10%">是否有效</th>
            <th width="10%">操作</th>
        </tr>

        <{volist name="list['lent']['data']" id="v" empty="$empty"}>
        <tr>
            <td style="text-align:left; padding-left:20px;"><input type="checkbox" name="id[]" value="" />
                <{$v['pid']}>
            </td>
            <td> <{:str_replace(input('keywords'),"<font color='red'><b>".input('keywords')."</b></font>",$v['pname'])}> </td>
            <td><{$v['pvalues']}></td>
            <td><{$v['priv_v']}></td>
            <td><{$v['sort_order']}></td>
            <td><{$v['shanchu']}></td>
            <td><div class="button-group">
                <a class="button border-main" href="<{:url('sxlbedit?id='.$v['pid'],input('get.'))}>">
                    <span class="icon-edit"></span>
                    修改</a>
                <a class="button border-red"  href="javascript:void(0)" onclick="return del(1,2)">
                    <span class="icon-trash-o del" ids="<{$v['pid']}>"> 删除</span></a> </div></td>
        </tr>
        <{/volist}>
    </table>
<tr><td><{$list['fenye']|raw}></td></tr>
</div>
<script type="text/javascript">
    $('.del').click(function () {
        var id = $(this).attr('ids');
        if (confirm("确认删除吗？")){
            location.href = "<{:url('del?1=1',input('get.'))}>&id="+id;
        }
    });
</script>

            </div>
        </form>
    </div>
</div>
</body>
</html>
